Skip to content

W-20242793: handle empty error messages#267

Merged
WillieRuemmele merged 1 commit into
ngafrom
er/fix-empty-error-message
Nov 18, 2025
Merged

W-20242793: handle empty error messages#267
WillieRuemmele merged 1 commit into
ngafrom
er/fix-empty-error-message

Conversation

@EstebanRomero84
Copy link
Copy Markdown
Contributor

@EstebanRomero84 EstebanRomero84 commented Nov 18, 2025

What does this PR do?

Handle empty error messages in agent publish authoring-bundle command when API response is HTTP 404.

What issues does this PR fix or reference?

@W-20242793@

QA notes

One way to simulate a HTTP 404 is to set SF_TEST_API=false when testing in a CI environment.

@WillieRuemmele
Copy link
Copy Markdown
Contributor

QA notes


✅ : now shows 404 message

 ➜  ../../oss/plugin-agent/bin/run.js agent publish authoring-bundle                                  
? API name of the authoring bundle to publish willie_tecca_chair

 ──────────────── Publishing Agent ────────────────

 ✘ Validate Bundle 667ms
 ◼ Publish Agent
 ◼ Retrieve Metadata

 Agent Name: willie_tecca_chair
 Elapsed Time: 700ms

Error (2): Failed to publish agent with the following errors:
ERROR_HTTP_404

before:

 ➜  sf agent publish authoring-bundle    
? API name of the authoring bundle to publish willie_tecca_chair

 ──────────────── Publishing Agent ────────────────

 ✘ Validate Bundle 1.03s
 ◼ Publish Agent
 ◼ Retrieve Metadata

 Agent Name: willie_tecca_chair
 Elapsed Time: 1.07s

Error (2): Failed to publish agent with the following errors:


@WillieRuemmele WillieRuemmele merged commit cbdc57d into nga Nov 18, 2025
16 checks passed
@WillieRuemmele WillieRuemmele deleted the er/fix-empty-error-message branch November 18, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants